//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    class Vector3D: IOfficeXmlSerializableAs
    {
        private long dx;
        private long dy;
        private long dz;

        public void ReadXmlAs(string name, ReadContext context)
        {
            using (var c = context.Read(name))
            {
                dx = c.GetInteger64("dx");
                dy = c.GetInteger64("dy");
                dz = c.GetInteger64("dz");
            }
        }

        public void WriteXmlAs(string name, WriteContext context)
        {
            using (var c = context.Write(name))
            {
                c.SetInteger64("dx", dx );
                c.SetInteger64("dy", dy );
                c.SetInteger64("dz", dz );
            }
        }
    }
}